#include "pch.h"
#include "CocrMatrix.h"
void CocrMatrix::toStr(Matrix* mat, char* bs) {
	
	for (int i = 0; i < mat->ysize; i++) {
		for (int j = 0; j < mat->xsize;j++) {
			if (mat->get(j,i)== 0) {
				*(bs + j + i * mat->xsize) = '0';
			}
			else {
				*(bs + j + i * mat->xsize) = '1';
			}
		}
	}

}
